import { useNavigate } from 'react-router-dom';

export default ({ icon, href }: any) => {
	const navigate = useNavigate();
	return (
		<i
			className='icon-class'
			onClick={() => {
				navigate(href);
			}}>
			{icon}
		</i>
	);
};
